<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('business/index')}">商机列表</a></li>
		</ul>
        <form class="well form-inline margin-top-20" method="get" action="{:url('business/index')}">
            门店名称:
            <input type="text" class="form-control" name="name" style="width: 220px;" value="{:input('request.name/s','')}">
            联系电话:
            <input type="text" class="form-control" name="mobile" style="width: 220px;" value="{:input('request.mobile/s','')}">
            <input type="submit" class="btn btn-primary" value="搜索" />
            <a class="btn btn-danger" href="{:url('business/index')}">清空</a>
        </form>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th width="50">ID</th>
					<th>门店名称</th>
					<th>门店地址</th>
					<th>门牌号</th>
					<th>联系人</th>
					<th>联系电话</th>
					<th>备注</th>
					<th>附件</th>
					<th>提交时间</th>
					<th>业务员</th>
					<th>状态</th>
					<th>{:lang('ACTIONS')}</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="list" item="vo">
				<tr>
					<td>{$vo.id}</td>
					<td>{$vo.name}</td>
					<td>{$vo.address}</td>
					<td>{$vo.number}</td>
					<td>{$vo.contacts}</td>
					<td>{$vo.mobile}</td>
					<td>{$vo.remark}</td>
					<td>
						<foreach name="vo.files" item="f">
							<a href="javascript:imagePreviewDialog('{$f}');">
                                <i class="fa fa-photo fa-fw"></i>
                            </a>
                        </foreach>
					</td>
					<td>{$vo.create_time}</td>
					<td>{$vo.salesman.name}|{$vo.salesman.mobile}</td>
					<td>{$vo.status_text}</td>
					<td>
						<if $vo.status == 1>
							<a class="btn btn-xs btn-success js-ajax-dialog-btn" href="{:url('business/handle',array('id'=>$vo['id']))}">处理对接</a>
						</if>
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>